package cn.xianshu.basic.util;

import lombok.Data;

@Data
public class AxiosResult{
    private boolean success = true;
    private String message = "操作成功";
    private Object resultObj;

    public static AxiosResult me(){
        return new AxiosResult();
    }


    public AxiosResult setMessage(String message){
        this.success = false;
        this.message = message;
        return this;
    }

    public AxiosResult setResultObj(Object resultObj) {
        this.resultObj = resultObj;
        return this;
    }

    public AxiosResult setSuccess(Boolean success) {
        this.success = success;
        return this;
    }

}
